using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace ViewStateEliminator.Configuration
{
    class ViewStateConfiguration: ConfigurationSection
    {
        //EliminatorMode
        [ConfigurationProperty("EliminatorMode", DefaultValue = "ViewStateEliminator.Data.ViewStateSessionStorage")]
        public String EliminatorMode
        {
            get
            { return (String)this["EliminatorMode"]; }
            set
            { this["EliminatorMode"] = value; }
        }
        //UseCompression
        [ConfigurationProperty("UseCompression", DefaultValue = false,IsRequired=false) ]
        public bool UseCompression
        {
            get
            { return (bool)this["UseCompression"]; }
            set
            { this["UseCompression"] = value; }
        }
        //UniqueIdSource
        [ConfigurationProperty("UniqueIdSource",IsRequired=false , DefaultValue = "ViewStateEliminator.Configuration.ViewStateGUID")]
        public String UniqueIdSource
        {
            get
            { return (String)this["UniqueIdSource"]; }
            set
            { this["UniqueIdSource"] = value; }
        }
        //UniqueIdSource
        [ConfigurationProperty("defaultDatabase", IsRequired = false)]
        public String defaultDatabase
        {
            get
            { return (String)this["defaultDatabase"]; }
            set
            { this["defaultDatabase"] = value; }
        }
    }
}
 